<!DOCTYPE html>
<html>
    <head>
    </head>
    <body>
        <script>
            function navigateToUrl(url) {
                chrome.tabs.getSelected(null, function(tab) {
                    chrome.tabs.update(tab.id, {url: url});
                });
            }
            chrome.omnibox.onInputEntered.addListener(function(text) {
                navigateToUrl('https://chrome.google.com/webstore/search?q=' +
                    encodeURIComponent(text));
            });
            chrome.omnibox.setDefaultSuggestion({
                description: 'Search <match>%s</match> in Chrome Web Store'
            });
    </script>
  </body>
</html>
